package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YxUserVipStatusesMapper;
import com.ruoyi.system.domain.YxUserVipStatuses;
import com.ruoyi.system.service.IYxUserVipStatusesService;

/**
 * 用户VIP状态Service业务层处理
 * 
 * @author lingyu
 * @date 2024-04-03
 */
@Service
public class YxUserVipStatusesServiceImpl implements IYxUserVipStatusesService 
{
    @Autowired
    private YxUserVipStatusesMapper yxUserVipStatusesMapper;

    /**
     * 查询用户VIP状态
     * 
     * @param id 用户VIP状态主键
     * @return 用户VIP状态
     */
    @Override
    public YxUserVipStatuses selectYxUserVipStatusesById(Long id)
    {
        return yxUserVipStatusesMapper.selectYxUserVipStatusesById(id);
    }

    /**
     * 查询用户VIP状态列表
     * 
     * @param yxUserVipStatuses 用户VIP状态
     * @return 用户VIP状态
     */
    @Override
    public List<YxUserVipStatuses> selectYxUserVipStatusesList(YxUserVipStatuses yxUserVipStatuses)
    {
        return yxUserVipStatusesMapper.selectYxUserVipStatusesList(yxUserVipStatuses);
    }

    @Override
    public YxUserVipStatuses selectYxUserVipStatusesTime(YxUserVipStatuses yxUserVipStatuses) {
        return yxUserVipStatusesMapper.selectYxUserVipStatusesTime(yxUserVipStatuses);
    }

    /**
     * 新增用户VIP状态
     * 
     * @param yxUserVipStatuses 用户VIP状态
     * @return 结果
     */
    @Override
    public int insertYxUserVipStatuses(YxUserVipStatuses yxUserVipStatuses)
    {
        return yxUserVipStatusesMapper.insertYxUserVipStatuses(yxUserVipStatuses);
    }

    /**
     * 修改用户VIP状态
     * 
     * @param yxUserVipStatuses 用户VIP状态
     * @return 结果
     */
    @Override
    public int updateYxUserVipStatuses(YxUserVipStatuses yxUserVipStatuses)
    {
        return yxUserVipStatusesMapper.updateYxUserVipStatuses(yxUserVipStatuses);
    }

    /**
     * 批量删除用户VIP状态
     * 
     * @param ids 需要删除的用户VIP状态主键
     * @return 结果
     */
    @Override
    public int deleteYxUserVipStatusesByIds(Long[] ids)
    {
        return yxUserVipStatusesMapper.deleteYxUserVipStatusesByIds(ids);
    }

    /**
     * 删除用户VIP状态信息
     * 
     * @param id 用户VIP状态主键
     * @return 结果
     */
    @Override
    public int deleteYxUserVipStatusesById(Long id)
    {
        return yxUserVipStatusesMapper.deleteYxUserVipStatusesById(id);
    }
}
